import instance from "@/utils/request";
import type{ IResponse } from "@/types/types";



//查询订单
export const RequestOderList =(userId:number):Promise<IResponse>=>{
  return instance({
         method:'get',
         url:'/api/order/find',
         params:{
            userId
         }

  })

}
//取消订单
export const RequestRemoveOderList = (orderNum:number):Promise<IResponse>=>{
  return instance({
    method:'put',
    url:'/api/order/cancel',
    params:{
      orderNum
    }
  })
}